package com.mf.entity.req.publicReq;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2025/3/8 21:07
 * Description:  分页参数
 */
@Data
public class ReqPublicPaging {
    @Schema(description = "页码", example = "1")
    private Integer pageNum = 1;
    @Schema(description = "每页数量", example = "30")
    private Integer pageSize = 50;

    public  <T> Page<T> getPage(){
        return  new Page<T>(pageNum, pageSize);
    }
}

